/*
 * @Author: AskMeWhy
 * @Date:   2020-05-21 11:21:15
 * @Last Modified by: AskMeWhy
 * @Last Modified time: 2020-11-27 09:56:50
 */

/**
 * [resourcePathInfo description]
 * 这部分数据是pages/home/index里面会用到的公共数据
 * 后面所有需要相关路由信息都需要在这里配置
 * 并且会挂载到每个page函数的data数据里面
 * 页面调用则是this.data.$_resourcePathInfo
 */
export const resourcePathInfo = [{
        name: '自然资源',
        id: 1,
        type: 0,
        children: [{
                name: '基础信息',
                id: 7,
                url: '/pages/unpackage/village-base/index',
                onlyKey: '/pages/unpackage/village-base/index'
            },
            {
                name: '土地',
                id: 8,
                url: '/pages/unpackage/land/index',
                onlyKey: '/pages/unpackage/land/index'
            },
            {
                name: '房屋',
                id: 11,
                url: '/pages/unpackage/houses/index',
                onlyKey: '/pages/unpackage/houses/index'
            },
            {
                name: '水域',
                id: 9,
                url: '/pages/unpackage/waters/index',
                onlyKey: '/pages/unpackage/waters/index'
            },
            {
                name: '林盘',
                id: 10,
                url: '/pages/unpackage/forest/index',
                onlyKey: '/pages/unpackage/forest/index'
            },
            {
                name: '山体',
                id: 13,
                url: '/pages/unpackage/mountain/index',
                onlyKey: '/pages/unpackage/mountain/index'
            },
            {
                name: '典型物种',
                id: 40,
                url: '/pages/unpackage/typical-species/index',
                onlyKey: '/pages/unpackage/typical-species/index'
            }
        ]
    },
    {
        name: '人才资源',
        id: 4,
        type: 1,
        children: [{
                name: '匠艺人',
                id: 28,
                url: '/pages/unpackage/artisan/index',
                onlyKey: '/pages/unpackage/artisan/index'
            },
            {
                name: '技能人员',
                id: 29,
                url: '/pages/unpackage/skills/index',
                onlyKey: '/pages/unpackage/skills/index'
            },
            {
                name: '乡村管理人才',
                id: 37,
                url: '/pages/unpackage/village-manage/index',
                onlyKey: '/pages/unpackage/village-manage/index'
            }
        ]
    },
    {
        name: '文化资源',
        id: 2,
        type: 2,
        children: [{
                name: '方言',
                id: 15,
                url: '/pages/unpackage/folk-dialect/index',
                onlyKey: '/pages/unpackage/folk-dialect/index'
            },
            {
                name: '历史人物',
                id: 16,
                url: '/pages/unpackage/historical-figures/index',
                onlyKey: '/pages/unpackage/historical-figures/index'
            },
            {
                name: '历史传说',
                id: 17,
                url: '/pages/unpackage/historical-legend/index',
                onlyKey: '/pages/unpackage/historical-legend/index'
            },
            {
                name: '民间演艺',
                id: 18,
                url: '/pages/unpackage/folk-story/index',
                onlyKey: '/pages/unpackage/folk-story/index'
            },
            {
                name: '民间活动',
                id: 20,
                url: '/pages/unpackage/folk-activity/index',
                onlyKey: '/pages/unpackage/folk-activity/index'
            },
            {
                name: '地方风俗',
                id: 19,
                url: '/pages/unpackage/folk-custom/index',
                onlyKey: '/pages/unpackage/folk-custom/index'
            },
            {
                name: '特色服饰',
                id: 21,
                url: '/pages/unpackage/folk-apparel/index',
                onlyKey: '/pages/unpackage/folk-apparel/index'
            },
            {
                name: '地方饮食',
                id: 22,
                url: '/pages/unpackage/folk-diet/index',
                onlyKey: '/pages/unpackage/folk-diet/index'
            },
            {
                name: '传统建筑',
                id: 23,
                url: '/pages/unpackage/folk-building/index',
                onlyKey: '/pages/unpackage/folk-building/index'
            },
            {
                name: '特色产品',
                id: 24,
                url: '/pages/unpackage/folk-product/index',
                onlyKey: '/pages/unpackage/folk-product/index'
            },
            {
                name: '地方古迹',
                id: 38,
                url: '/pages/unpackage/folk-site/index',
                onlyKey: '/pages/unpackage/folk-site/index'
            },
            {
                name: '非遗文化',
                id: 39,
                url: '/pages/unpackage/folk-culture/index',
                onlyKey: '/pages/unpackage/folk-culture/index'
            },
            {
                name: '乡贤名人',
                id: 41,
                url: '/pages/unpackage/folk-celebrity/index',
                onlyKey: '/pages/unpackage/folk-celebrity/index'
            },
            {
                name: '老物件',
                id: 42,
                url: '/pages/unpackage/folk-object/index',
                onlyKey: '/pages/unpackage/folk-object/index'
            }
        ]
    },
    {
        name: '产业&项目资源',
        id: 3,
        type: 3,
        children: [{
                name: '产业基地',
                url: '/pages/unpackage/industry/index',
                onlyKey: '/pages/unpackage/industry/index',
                id: 14
            },
            {
                name: '待开发项目',
                url: '/pages/unpackage/project-waiting/index',
                onlyKey: '/pages/unpackage/project-waiting/index',
                id: 25
            },
            {
                name: '开发中项目',
                url: '/pages/unpackage/project-processing/index',
                onlyKey: '/pages/unpackage/project-processing/index',
                id: 26
            },
            {
                name: '已开发项目',
                url: '/pages/unpackage/project-completed/index',
                onlyKey: '/pages/unpackage/project-completed/index',
                id: 27
            },
            {
                name: '企业表单',
                url: '/pages/unpackage/company/index',
                onlyKey: '/pages/unpackage/company/index',
                id: 48
            }
        ]
    },
    {
        name: '可交易资源',
        id: 43,
        type: 6,
        children: [{
            name: '闲置房源',
            id: 44,
            url: '/pages/unpackage/traded-idle-house/index',
            onlyKey: '/pages/unpackage/traded-idle-house/index',
        }]
    },
    {
        name: '政策咨询',
        id: 6,
        type: 4,
        children: [{
            name: '新闻',
            id: 34,
            url: '',
            onlyKey: 'onlyKey1'
        }, {
            name: '政策',
            id: 35,
            url: '',
            onlyKey: 'onlyKey2'
        }]
    },
    {
        name: '服务资源',
        id: 5,
        type: 5,
        children: [{
            name: '乡村策划',
            id: 30,
            url: '',
            onlyKey: 'onlyKey3'
        }, {
            name: '金融服务',
            id: 31,
            url: '',
            onlyKey: 'onlyKey4'
        }, {
            name: '施工落地',
            id: 32,
            url: '',
            onlyKey: 'onlyKey5'
        }, {
            name: '运营管理',
            id: 33,
            url: '',
            onlyKey: 'onlyKey6'
        }]
    }
];

/**
 * [resourceSettingTable description]
 * 这部分数据是每个表单页面对应的类型id
 * {
*         路由路径: {
*             id: '当前路径对应的类型ID',
*             //其他的都是每个表单页面对应的类型命名的id
*             XXX
*         }
 * }
 */
export const resourceSettingTable = {
    // 农产品这个类型是单独的，会有多个页面共用
    "/pages/plugins/argo-product/index": {
        id: 850,
        varietyPlantId: 858,// 类型及品种-种植物ID
        varietyBreedId: 859, // 类型及品种-养殖物ID
        seasonId: 860, // 季节ID
        unitId: 851, // 计量单位ID
        logisticsTypeId: 856, // 物流方式ID
        logisticsPayId: 857, // 物流收费ID
    },
    "/pages/unpackage/folk-object/index": {
        id: 9,
        oldType: 17, // 老物件类型ID
    },
    "/pages/unpackage/land/index": {
        id: 2,
        breed: 21, // 现有养殖类型ID
        soil: 19, // 土壤属性类型ID
        plantId: 20, // 现有种植物类型ID
        seasonId: 840, // 季节类型ID
    },
    "/pages/unpackage/folk-building/index": {
        id: 10,
        building: 22, // 建筑类型类型ID
        material: 23, // 材质结构类型ID
    },
    "/pages/unpackage/folk-product/index": {
        id: 11,
        productType: 24, // 产品类型类型ID
    },
    "/pages/unpackage/skills/index": {
        id: 7,
        skill: 27, // 工作技能类型ID
        train: 773, // 培训意愿类型ID
    },
    "/pages/unpackage/waters/index": {
        id: 3,
        resource: 28, // 资源类型类型ID
        round: 30, // 周边配套类型ID
    },
    "/pages/unpackage/houses/index": {
        id: 4,
        houseStructure: 31, // 房屋结构类型ID
        configYard: 32, // 配置院落类型ID
        breed: 33, // 现有养殖类型ID
        attachTag: 776, // 附加标签类型ID
    },
    "/pages/unpackage/project-waiting/index": {
        id: 15,
        traderRecruitType: 45, // 招商类型类型ID
        productTag: 48, // 项目标签类型ID
        publicFacilities: 36, // 公共设施类型ID
        trafficState: 39, // 交通情况类型ID
        ownerProjectType: 723, // 项目所有人性质ID
    },
    "/pages/unpackage/project-completed/index": {
        id: 34,
        traderRecruitType: 46, // 招商类型类型ID
        productTag: 49, // 项目标签类型ID
        publicFacilities: 35, // 公共设施类型ID
        trafficState: 40, // 交通情况类型ID
        ownerProjectType: 725, // 项目所有人性质ID
    },
    "/pages/unpackage/project-processing/index": {
        id: 16,
        traderRecruitType: 44, // 招商类型类型ID
        productTag: 47, // 项目标签类型ID
        publicFacilities: 37, // 公共设施类型ID
        trafficState: 38, // 交通情况类型ID
        ownerProjectType: 724, // 项目所有人性质ID
    },
    "/pages/unpackage/artisan/index": {
        id: 6,
        skill: 26, // 主要技能类型ID
    },
    "/pages/unpackage/traded-idle-house/index": {
        id: 628,
        buildConfigId: 631, // 配置院落ID
        buildIntegrityId: 629, // 主体完整性ID
        buildStructureId: 637, // 建筑结构ID
        buildOldMarkId: 630, // 古建筑元素ID
        houseInfrastructureId: 632, // 房屋设施-基础设施ID
        houseSituationId: 679, // 房屋设施-装修情况ID
        houseFacilitiesId: 633, // 房屋设施-家电设施ID
        houseFurnitureId: 634, // 房屋设施-家具ID
        aroundPlanningId: 635, // 周边配套-规划中行政配套ID
        aroundEnvironmentalId: 636, // 周边配套-周边环境配套ID
        aroundTrafficId: 681, // 周边配套-交通配套ID
        villageProjectId: 680, // 村镇情况-项目类型ID
        transferDrainageId: 682, // 厂房或民宿转让-排污方式ID
        transferHomePresentId: 683, // 厂房或民宿转让-房屋现状ID
        transferWorkshopIndustryId: 684, // 厂房或民宿转让-工厂原有产业类型ID
        transferWorkshopNatureLandId: 685, // 厂房或民宿转让-用地性质ID
    },
    "/pages/unpackage/industry/index": {
        id: 14,
        expansion: 777, // 基地扩建ID
        channelExpansion: 778, // 渠道搭建/扩展ID
        industryFirst: 41, // 第一产业ID
        industrySecond: 42, // 第二产业ID
        industryThird: 43, // 第三产业ID
    },
    "/pages/unpackage/company/index": {
        id: 815,
        industryId: 816, // 所属行业ID
        otherDemandId: 817, // 其他需求ID
    },
};